//
//  UIImage+OriginalImage.m
//  Weibo1
//
//  Created by dfpo on 15/2/14.
//  Copyright (c) 2015年 dfpo. All rights reserved.
//

#import "UIImage+Extension.h"

@implementation UIImage (OriginalImage)
+ (UIImage *)imageWithName:(NSString *)name {
    
    UIImage *image = nil;
    
    if (iOS7) {
        NSString *newname = [name stringByAppendingString:@"_os7"];
        image = [UIImage imageNamed:newname];
    }
    
    if (image == nil) {
        image = [UIImage imageNamed:name];
    }
    return image;
}
@end
